Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: don't read chunk when checking existence #9552

Merged
merged 1 commit into from
Sep 21, 2023

Conversation

jakmeier
Copy link
Contributor

Chunks can be MBs in size. We should not force a read from DB when it's not cached already.

Also alters the chunk_exists method to check the cache first. An exists call on the DB is still more expensive than looking up an Arc in the in-memory cache.

Chunks can be MBs in size. We should not force a read from DB when it's
not cached already.

Also alters the `chunk_exists` method to check the cache first.
An `exists` call on the DB is still more expensive than looking up an
`Arc` in the in-memory cache.
@jakmeier jakmeier requested a review from a team as a code owner September 21, 2023 12:13
@jakmeier jakmeier requested a review from nikurt September 21, 2023 12:13
@jakmeier jakmeier enabled auto-merge September 21, 2023 12:21
@jakmeier jakmeier added this pull request to the merge queue Sep 21, 2023
Merged via the queue into near:master with commit 5e3fa15 Sep 21, 2023
@jakmeier jakmeier deleted the chunk_exists_check branch September 21, 2023 12:52
nikurt pushed a commit that referenced this pull request Sep 22, 2023
Chunks can be MBs in size. We should not force a read from DB when it's
not cached already.

Also alters the `chunk_exists` method to check the cache first.
An `exists` call on the DB is still more expensive than looking up an
`Arc` in the in-memory cache.
nikurt pushed a commit that referenced this pull request Sep 26, 2023
Chunks can be MBs in size. We should not force a read from DB when it's
not cached already.

Also alters the `chunk_exists` method to check the cache first.
An `exists` call on the DB is still more expensive than looking up an
`Arc` in the in-memory cache.
nikurt pushed a commit that referenced this pull request Sep 26, 2023
Chunks can be MBs in size. We should not force a read from DB when it's
not cached already.

Also alters the `chunk_exists` method to check the cache first.
An `exists` call on the DB is still more expensive than looking up an
`Arc` in the in-memory cache.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants